package com.proactive.webapp.dao;

import java.util.List;

import com.proactive.webapp.entity.Course;

public interface CourseDAO {
	public int insert(Course course);
	public void update(Course course);
	public void updateStatus(Course course);
	public void updateViewCount(Course course);
	public Course get(Course course);
	public Course getByWriter(Course course);
	public Course getByLogin(Course course, String loginAccount);
	public List<Course> getListByType(String type, int start, int size);
	public List<Course> getListByCategory1(String type, int category1ID, int start, int size);
	public List<Course> getListByCategory2(String type, int category2ID, int start, int size);
	public List<Course> getListByCategory2Top3(int category2ID, int currentCourseID);
	public int countTotal(int category1ID, int category2ID);
	public List<Course> getListByMember(String account, int start, int size);
	public List<Course> getListByWriter(String account, int start, int size);
	public int countTotalByMember(String account);
	public int countTotalByWriter(String account);
	public List<Course> getListByMemberTop(String account, int number);
	public List<Course> getListTop(int number);
}
